class Mysingleton:
    __obj = None
    __init_flag = True

    def __new__(cls,*args,**kwargs):
        if cls.__obj == None:
            cls.__obj = super().__new__(cls)

        return cls.__obj

    def __init__(self,name):
        if Mysingleton.__init_flag:
            print("init....")
            self.name = name
            Mysingleton.__init_flag = False

a = Mysingleton('aa')
print(a)
b = Mysingleton('bb')
print(b)
print(id(a))
print(id(b))



